home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Examples / DragItem B&W / Drag Item B&W ReadMe < prev    next >
Encoding:
Text File  |  1995-12-05  |  1.6 KB  |  33 lines  |  [TEXT/ttxt]

  1. Example:                        Drag Item B&W
  2. Written by:                    John Garden, Pictorius Incorporated
  3. Updated for 2.6.1 by:            The Tech Support Team, Pictorius Incorporated
  4.  
  5. Note:    Enclosed is a version of the DragItem class which will work on 68000 based machines.  This does *not* work in Color - it *only* works in B&W.  Some more work needs to be done to create a class that tests for color on the current system and does the appropriate thing. 
  6.  
  7. Contents:     Drag Item B&W.pgs
  8.                    Drag Item B&W Read Me
  9.                    CopyPix.XDEF
  10.                    CopyPix XDEF • Read me
  11.  
  12. Needs Prograph Extensions:
  13.                     The default configuration of your 'Prograph Extensions' folder.  Plus the CopyPix.XDEF should be added to your Prograph Extensions folder and all externals rebuilt.
  14.  
  15. Needs Libraries to Compile:
  16.                     SCLibrary 2.6
  17.                     Library 2.6
  18.  
  19. The following methods in class Drag Item were modified:
  20.     NewPixMap
  21.     DisposePixMap
  22.     drag
  23.  
  24. The changes that were made are summarized as follows:
  25.     All calls to OpenCPort changed to OpenPort
  26.     All calls to CloseCPort changed to ClosePort
  27.     All calls to CopyPix changed to CopyBits
  28.     Mac Get of portPixBits changed to Mac Get Address of portBits
  29.  
  30. For more background on why these changes needed to be made, read up in InsideMacintosh or Think Reference on the structural differences between CGrafPorts and GrafPorts, portPixBits and portBits.
  31.  
  32. The call to GetMaxDevice in DragItem/drag/before/allocate/depth was removed.  We just assume that the depth of the screen is 1.
  33.